using System;
using System.Collections.Generic;

namespace DemoApp.DataAccess 
{
  [Serializable]
  public partial class Favorite 
  {
    public Favorite()
    {
      SuperFavorites = new List<FavoriteDerived>();
    }

    public virtual double? Vote { get; set; } 

    public virtual Guid UserId { get; set; }
    public virtual User User { get; set; }

    public virtual Guid SubjectId { get; set; }
    public virtual Subject Subject { get; set; }

    public virtual IList<FavoriteDerived> SuperFavorites { get; set; }

  }

  [Serializable]
  public partial class FavoriteKey
  {
    public Guid UserId { get; set; }
    public Guid SubjectId { get; set; }
  }
}
